package com.bci.internal.engine.bcibpmengine.service;


import com.bci.internal.engine.bcibpmengine.vo.ProcessInstanceVo;
import com.bci.internal.engine.bcibpmengine.vo.TaskVo;
import org.activiti.engine.repository.ProcessDefinition;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;

/**
 * 流程实例
 *
 * @author jzwu
 * @since 2021/4/5 0005
 */
public interface ActivitiProcessInstanceService {

    /**
     * @param processDeploymentId
     * @param instanceName
     * @param instanceVariable
     * @return ProcessInstanceVo 流程实例
     */
    ProcessInstanceVo initProcessInstance(String processDeploymentId, String instanceName, String instanceVariable);


    /**
     * 获取所有流程实例
     *
     * @return List<HashMap<String, Object>> listProcessDefinitions
     */
    List<HashMap<String, Object>> listProcessDefinitions(int page, int pageSize);
}
